From ef698bba61b7907b8373f18869ddbaa13b41eef0 Mon Sep 17 00:00:00 2001 From: Daniel Kiper Date: Thu, 27 Jan 2011 19:51:47 +0000 Subject: [PATCH] tools/security: Adjust secpol_tool.c for change to xc_interface_open xc_interface_open() was called with improper number of arguments. It is fixed by this patch. This appears to have been missed by 21483:779c0ef9682c. The interface change also included the return type (int->xc_interface *) but that was already covered in 21483. Acked-by: Ian Campbell Signed-off-by: Daniel Kiper Committed-by: Ian Jackson --- tools/security/secpol_tool.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/security/secpol_tool.c b/tools/security/secpol_tool.c index bc85a93e92..792739e22d 100644 --- a/tools/security/secpol_tool.c +++ b/tools/security/secpol_tool.c @@ -511,7 +511,7 @@ int main(int argc, char **argv) if (argc != 2) usage(argv[0]); - if ((xc_handle = xc_interface_open()) == 0) { + if ((xc_handle = xc_interface_open(0, 0, 0)) == 0) { printf("ERROR: Could not open xen privcmd device!\n"); exit(-1); } @@ -523,7 +523,7 @@ int main(int argc, char **argv) if (argc != 3) usage(argv[0]); - if ((xc_handle = xc_interface_open()) == 0) { + if ((xc_handle = xc_interface_open(0, 0, 0)) == 0) { printf("ERROR: Could not open xen privcmd device!\n"); exit(-1); } @@ -535,7 +535,7 @@ int main(int argc, char **argv) if (argc != 2) usage(argv[0]); - if ((xc_handle = xc_interface_open()) == 0) { + if ((xc_handle = xc_interface_open(0, 0, 0)) == 0) { printf("ERROR: Could not open xen privcmd device!\n"); exit(-1); } -- 2.30.2